<template>
  <div>
    <div class="AppHeader">
      <div class="AppHeader-globalBar-start">
        <button class="sidebar-button" @click="openSidebar">
          <i class="bi bi-list-ul"></i>
        </button>
        <div class="logo-text">R</div>
      </div>
      <div class="AppHeader-globalBar-end"></div>
    </div>
  </div>
</template>

<script>
export default {
  name: "TestcaseHeader",
  methods: {
    openSidebar() {
      this.$emit("openSidebar", true);
    },
  },
};
</script>

<style lang="scss" scoped>
.AppHeader {
  background-color: #0e1218;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  .AppHeader-globalBar-start {
    gap: 20px;
    display: flex;
    align-items: center;
    .sidebar-button {
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      border: 1px solid black;
      border-radius: 5px;
      padding: 3px;
      i {
        font-size: 20px;
        line-height: 1;
      }
    }
    .logo-text {
      cursor: pointer;
      font-size: 25px;
      font-weight: bold;
      line-height: 1; // 可以不让文本元素撑大。这个很关键很有用
    }
  }
}
</style>
